{{--header 模板--}}


<header class="am-topbar am-topbar-inverse admin-header" style="background:#808080;">
    <div class="am-topbar-brand">
        <img src="{{DOMAIN}}/img/icon.png" height="20">
        {{--<strong>Wisdom East Station</strong> --}}
        <small>美策平台管理中心</small>
    </div>

    <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only" data-am-collapse="{target: '#topbar-collapse'}"><span class="am-sr-only">导航切换</span> <span class="am-icon-bars"></span></button>

    <div class="am-collapse am-topbar-collapse" id="topbar-collapse">

        <ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list">
            <li class="am-dropdown" data-am-dropdown>
                <a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">
                    <span class="am-icon-users"></span>
                    管理员：{{Session::get('admin.name')}}
                    <span class="am-icon-caret-down"></span>
                </a>
                <ul class="am-dropdown-content">
                    <li><a href="{{ADMIN_DOMAIN}}">
                            <span class="am-icon-user"></span>
                            {{$home->name}}
                        </a></li>
                    @if(count($homeSubs))
                        @foreach($homeSubs as $k=>$v)
                    <li><a href="{{ADMIN_DOMAIN.$v->url}}">
                            <span class="am-icon-user"></span>
                            {{$v->name}}
                        </a></li>
                        @endforeach
                    @endif
                    {{--<li><a href="#"><span class="am-icon-user"></span> 内部生产</a></li>--}}
                    {{--<li><a href="#"><span class="am-icon-user"></span> 内部办公</a></li>--}}
                    {{--<li><a href="">--}}
                            {{--<span class="am-icon-cog"></span>--}}
                            {{--{{Session::get('admin.roleName')}}--}}
                        {{--</a></li>--}}
                    <li><a href="{{ADMIN_DOMAIN}}/logout"><span class="am-icon-power-off"></span> 退出</a></li>
                </ul>
            </li>
            <li class="am-hide-sm-only"><a href="javascript:;" id="admin-fullscreen"><span class="am-icon-arrows-alt"></span> <span class="admin-fullText">开启全屏</span></a></li>
        </ul>
    </div>
</header>